package com.geekaca.oop.work1;

public class Exam {
    public static void main(String[] args) {
        // 创建老师1
        Teacher teacher = new Teacher("王小娟", '女');

        // 创建学生1
        Student student = new Student("二狗", "2班");

        // 老师出题
        Paper englishPaper = teacher.setPaper("英语");

        // 学生考试
        student.answerPaper(englishPaper, 80);

        // 老师批改试卷
        teacher.checkPaper(englishPaper, student);

        System.out.println("======================");

        //创建老师2
        Teacher teacher2 = new Teacher("李云龙", '男');

        //创建学生2
        Student student2 = new Student("张三", "6班");


        // 老师出题
        Paper mathsPaper = teacher2.setPaper("数学");

        // 学生考试
        student2.answerPaper(mathsPaper, 99);

        //老师批改
        teacher2.checkPaper(mathsPaper, student2);


    }
}
